﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmRecetaEditar.aspx.cs" Inherits="WebMenu.Pagina.Mantenimiento.frmRecetaEditar" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../style/css/smoothness/jquery-ui.css" rel="stylesheet" />
    <script src="../../style/script/jquery-1.11.2.js"></script>
    <script src="../../style/script/jquery-ui.js"></script>
        <style type="text/css">
        /*#region name */
        .ocultar {
            display: none;
        }
        /*#endregion */
            </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="upRegistro" runat="server">
        <Triggers>

            <asp:AsyncPostBackTrigger ControlID="ddlTipo" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="ddlClase" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="ddlTipoProd" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="ddlProd" EventName="SelectedIndexChanged" />

        </Triggers>
        <ContentTemplate>
            <table>
                <tr>
                    <td></td>
                    <td></td>
                    <td>
                        &nbsp;</td>
                    <td></td>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Plato para el:</td>
                    <td>&nbsp;</td>
                    <td>Clase de Plato:</td>
                    <td></td>
                    <td>Receta:</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:DropDownList ID="ddlTipo" runat="server" AutoPostBack="true">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:DropDownList ID="ddlClase" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                    <td>
                        <asp:TextBox ID="txtRecetaE" runat="server"></asp:TextBox>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>&nbsp;</td>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td></td>
                    <td style="vertical-align: top">Tipo de Producto</td>
                    <td style="vertical-align: top">
                        &nbsp;</td>
                    <td style="vertical-align: top">Producto</td>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td ></td>
                    <td style="vertical-align: top" >
                        <asp:DropDownList ID="ddlTipoProd" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTipoProd_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td style="vertical-align: top" >&nbsp;</td>
                    <td style="vertical-align: top">
                        <asp:DropDownList ID="ddlProd" runat="server" AutoPostBack="true">
                        </asp:DropDownList>
                    </td>
                    <td >&nbsp;</td>
                    <td >
                        <asp:Button ID="btnAgregar" runat="server" OnClick="btnAgregar_Click" Text="Producto" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td></td>
                    <td style="vertical-align: top" colspan="5">
                        <asp:GridView ID="gvProducto" runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:CommandField CausesValidation="False" InsertVisible="False" ShowCancelButton="False" ShowDeleteButton="True" />
                                <asp:BoundField DataField="DESC_ITEMS" HeaderText="Tipo Producto" />
                                <asp:BoundField DataField="NOM_PROD" HeaderText="Producto" />
                                <asp:BoundField DataField="ID_ITEMS" HeaderStyle-CssClass="ocultar" HeaderText="IdTipoProd" ItemStyle-CssClass="ocultar" />
                                <asp:BoundField DataField="ID_PRODUCTO" HeaderStyle-CssClass="ocultar" HeaderText="IdProd" ItemStyle-CssClass="ocultar" />
                            </Columns>
                        </asp:GridView>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td></td>
                    <td style="vertical-align: top"></td>
                    <td style="vertical-align: top">&nbsp;</td>
                    <td style="vertical-align: top">
                        <asp:Button ID="btnGrabar" runat="server" Text="Grabar" />
                    </td>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
